package data.nanjing.expo.models.dao;

import data.nanjing.expo.models.domain.TradeRequire;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by zjp on 2018/6/26.
 * QQ：34948062
 * github: https://www.github.com/zjp1029
 * web： http://www.zjp1029.cn
 */
public interface TradeRequireDao {

    //首页展示的需求(管理员设置)
    public List<TradeRequire> selectHotRequires();

    //需求详情
    public TradeRequire selectRequireById(@Param("requireId") Integer requireId);

    //添加需求(发布)
    public Integer addTradeRequire(TradeRequire require);

    //投标数量加一
    public void addBidNumber(@Param("requireId") Integer requireId);
}
